﻿package com.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.entity.Folder;
import com.util.DBHelp;
import com.util.RowMapper;

public class FolderDao {
	DBHelp<Folder> db=new DBHelp<Folder>();

	public class FolderRowMapper implements RowMapper<Folder>{

		public Folder mapRow(ResultSet rs) throws SQLException {
			Folder f=new Folder();
			f.setFolderName(rs.getString("foldername"));
			f.setId(rs.getInt("id"));
			f.setProjectid(rs.getInt("projectid"));
			f.setUserid(rs.getInt("userid"));
			return f;
		}
		
	}
}
